package com.dgut.declaration_of_health.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dgut.declaration_of_health.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where username=#{uname}")
    User selectUserByUsername(@Param("uname") String user);
}